package com.dld.coupon.activity;

import android.app.Activity;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.util.Log;
import android.widget.ImageView;

import com.dld.protocol.image.ImageViewFill;

public class ImageActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.imagelayout);
		String datapath = getIntent().getData().getPath();
		Log.v("","*************** ImageActivity   "+datapath);

		ImageView paramImageView = (ImageView) findViewById(R.id.center_image);
		Bitmap bmp = ImageViewFill.fillImageView(datapath, paramImageView
				.getMeasuredWidth(), paramImageView.getMeasuredHeight());
		paramImageView.setImageBitmap(bmp);

	}

}
